

<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@taglib prefix="acme" tagdir="/WEB-INF/tags" %>



<jstl:if test="${isAdministrator}">
	<form:form action="security/registration/administrator.do"
		modelAttribute="adminForm">



		<acme:textbox code="security.username" path="username"/>
		<acme:password code="security.password" path="password"/>
		<acme:textbox code="security.name" path="name"/>
		<acme:textbox code="security.surname" path="surname"/>
		<acme:textbox code="security.email" path="email"/>
		<acme:submit code="security.registration.save" name="save"/>
		

		
	</form:form>
</jstl:if>


<jstl:if test="${authority=='participant'}">
	<form:form action="security/registration/participant.do"
		modelAttribute="participant">
		<form:hidden path="assessment" />
		<form:hidden path="registrations" />
		<form:hidden path="userAccount.authorities" />


		<acme:textbox code="security.username" path="userAccount.username"/>
		<acme:password code="security.password" path="userAccount.password"/>
		<acme:textbox code="security.name" path="name"/>
		<acme:textbox code="security.surname" path="surname"/>
		<acme:textbox code="security.email" path="email"/>


		<h1>
			<spring:message code="security.creditCard" />
		</h1>
		
		<acme:textbox code="security.creditcard.holderName" path="creditCard.holderName"/>
		<acme:textbox code="security.creditcard.brandName" path="creditCard.brandName"/>
		<acme:textbox code="security.creditcard.number" path="creditCard.number"/>
		<acme:textbox code="security.creditcard.expirationMonth" path="creditCard.expirationMonth"/>
		<acme:textbox code="security.creditcard.expirationYear" path="creditCard.expirationYear"/>
		<acme:textbox code="security.creditcard.cvvCode" path="creditCard.cvvCode"/>
		<acme:submit code="security.registration.save" name="save"/>
		

		
	</form:form>
</jstl:if>

		<acme:cancel code="security.registration.cancel" url="/welcome/index.do"/>






